package com.iptv.grape.net.Entity;

import android.util.Log;

import com.google.gson.Gson;

public class ConfigResult extends NetBaseResult{

    private ConfigDataResult data;

    public ConfigDataResult getData() {
        return data;
    }

    public void setData(ConfigDataResult data) {
        this.data = data;
    }


    public static ConfigResult createForJson(String json){
        try {
            ConfigResult configResult = new Gson().fromJson(json, ConfigResult.class);
            return configResult;
        }
        catch (Exception e){
            Log.e("ConfigResult", e.getMessage() );
            return null;
        }
    }
}
